package com.mtsui.server;

import com.google.gwt.user.server.rpc.RemoteServiceServlet;
import com.mtsui.client.PSRService;

import java.util.Map;
import java.util.HashMap;

public class PSRServiceImpl extends RemoteServiceServlet implements PSRService{
    /**
	 *  blah
	 */
	private static final long serialVersionUID = 1L;
	Map<String, Integer> scores = new HashMap<String, Integer>();
	
	public void RecordScore(final String playerName, final int score) {
	  scores.put(playerName, score);
    }
	
	public int FetchScore(final String player) {
	  return 42;
//	  if (scores.containsKey(player)) {
//		  return scores.get(player);
//	  } else {
//		  return 0;
//	  }
	}


}
